<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<link rel="stylesheet" href="css/bootstrap.css" />
	<script type="text/javascript" src="js/jquery.js"></script>
	<title>项目管理软件</title>
	<style type="text/css">
		body{
			background-image:url(img/scribble_light.png);
		}
		.first{
			padding-top:100px;
			height:150px;
			text-align-left:300px;
		}
		
	</style>
</head>
<body>
	<div class="navbar">
		<div class="navbar-inner">
			<div class="container">
				<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
				  <span class="icon-bar"></span>
				  <span class="icon-bar"></span>
				  <span class="icon-bar"></span>
				</a>
				<a class="brand" href="#" style="margin-left:50px">${projectname }</a>
				<div class="nav-collapse">
				  <ul class="nav">
					<li><a href="messages.jspx">最新动态</a></li>
					<li><a href="goal.jspx">目标</a></li>
					<li><a href="document.jspx">资料库</a></li>
					<li><a href="filetype.jspx">文件共享</a></li>
					<li class="active"><a href="person.jspx">联系人</a></li>
					<li><a href="idea.jspx">想法</a></li>
					<li><a href="#">Bug</a></li>
					<li><a href="#">项目设置</a></li>					
				  </ul>					
				</div>
			</div>
		</div>
	</div>
	<div class="container">
	    <div class="row">
			<div class="first">
				<div class="span6">				
					<h2>记录列表</h2>
					
				</div>
				<div class="span3">
					<a href="per.jspx?_m=new" class="btn btn-success"><i class="icon-plus icon-white"></i> 新记录</a>
				</div>
			</div>
		</div>
		<c:forEach items="${requestScope.notes}" var="p" >
			<div class="row" style="margin-top:-50px;">
				<div class="span9">
					<ul class="breadcrumb">
					<small>${p.user.username} 发布于${p.createtime }</small>
						<a title="删除" class="del_link" rel="${p.id }" href="javascript:;"><i class="icon-trash"></i></a>
						<a href="per.jspx?_m=edit&id=${p.id }" title="修改"><i class="icon-pencil"></i></a>
						
						<li style="float:right">
						</li>
						</ul>
						
						<div style="height:50px;margin-bottom:7px">
						<p>${p.text }</p>
					</div>	
					
								
				</div>
				
			</div>
		</c:forEach>		
	</div>  
	 <script type="text/javascript">
    	$(document).ready(function(){
    		$(".del_link").click(function(){
    			var id = $(this).attr("rel");
    			if(confirm("确定要删除此数据？")) {
					window.location.href = "per.jspx?_m=del&id=" + id;
    			}
    			
    		});
    		
    	});
    	
    </script> 
</body>
</html>